// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright (c) 2012 The cwkshell Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef   CUC_CWKSHELL_BROWSER_SHELL_RESOURCE_CONTEXT_H_
#define   CUC_CWKSHELL_BROWSER_SHELL_RESOURCE_CONTEXT_H_

#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "content/public/browser/resource_context.h"

namespace cuc {
	namespace shell {
		class ShellURLRequestContextGetter;

		class ShellResourceContext : public content::ResourceContext {
		public:
			explicit ShellResourceContext(ShellURLRequestContextGetter* getter);
			virtual ~ShellResourceContext();

		private:
			// ResourceContext implementation:
			virtual net::HostResolver* GetHostResolver() OVERRIDE;
			virtual net::URLRequestContext* GetRequestContext() OVERRIDE;

			scoped_refptr<ShellURLRequestContextGetter> getter_;

			DISALLOW_COPY_AND_ASSIGN(ShellResourceContext);
		};
	}  // namespace shell
}  // namespace cuc

#endif  //   CUC_CWKSHELL_BROWSER_SHELL_RESOURCE_CONTEXT_H_
